<style>
    .table td input{width: 3vw;}
</style>
@if($fields)

<table class="table table-striped table-bordered detail-view ">
    <tbody>
    <tr>
        <td nowrap="nowrap"></td>
        <td>星期一</td>
        <td>星期二</td>
        <td>星期三</td>
        <td>星期四</td>
        <td>星期五</td>
        <td>星期六</td>
        <td>星期日</td>
    </tr>
        @foreach($fields as $k=>$field)

        <tr class="yi">
            <td nowrap="nowrap">{{ $field['title'] }}</td>
            @foreach($field['weeks'] as $wk=>$wv)

            <td><input type="text" name="num[{{$wv['key']}}][{{$field['key']}}]" value="{{$wv['value']}}" style="text-align:center;"></td>
            @endforeach


        </tr>
        @endforeach

    </tbody>
</table>

@else
    请设置可预约时段后再设置号源！
    @endif
